<template>
	<div class="phone">
		<div class="header">
			<i class="el-icon-arrow-left"></i>
			<h2>{{ title }}</h2>
			<span></span>
		</div>
		<div class="content">
			<slot />
		</div>
		<div class="footer"></div>
	</div>
</template>
<script>
export default {
	props: {
		title: {
			type: String,
			default: "xxx"
		}
	},
	data() {
		return {};
	}
};
</script>
<style lang="scss" scoped>
.phone {
	width: 300px;
	height: 600px;
	border: 6px solid #333;
	box-shadow: 0 0 20px 5px rgba(100, 100, 100, 0.4);
	border-radius: 30px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	user-select: none;
	.header {
		padding: 20px 15px 5px 10px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		box-sizing: border-box;
		color: #333;
		i {
			font-size: 18px;
		}
	}
	.content {
		flex: 1;
		background: #f3f3f3;
		overflow: auto;
		&::-webkit-scrollbar {
			width: 5px;
			height: 5px;
		}
	}
	.footer {
		width: 100%;
		height: 70px;
		background-image: url("~@/assets/img/phone_foot.png");
		background-size: 100%;
	}
}
</style>
